package out1;


/*class Students
{
    public String name;
    int age;
    public Students(String name,int age)
    {
        this.name=name;
        this.age=age;
    }


    //@Override
    //public int compareTo(Object o) {


    //}

}

public class text7 {
    public void sort(Students[]arr1)
    {
        int i=0;
        for(i=0;i< arr1.length-1;i++)
        {
            int j=0;
            for(j=0;j<arr1.length-1-i;j++)
            {
                if(arr1[i].age>arr1[i+1].age)
                {
                    Students a=arr1[i];
                    arr1[i]=arr1[i+1];
                    arr1[i+1]=a;
                }
            }
        }

        public static void main(String[] args) {
        Students[]arr=new Students[]{new Students("wang",95),new Students("li",99),new Students("hui",97)};


           sort(arr);


    }




}

 */
